import re
# 边界匹配
qq = '100001000'
r = re.findall('^\d{4,8}$', qq)
print(r)
